home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeeFFFFoooorrrrmmmmaaaatttt((((3333XXXXUUUU))))NNNNIIIIXXXX SSSSyyyysssstttteeeemmmmXXXXVVVVmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeeFFFFoooorrrrmmmmaaaatttt((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_C_l_i_p_b_o_a_r_d_I_n_q_u_i_r_e_F_o_r_m_a_t - A clipboard function that returns
- a specified format name
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/Xm.h>
- #include <Xm/CutPaste.h>
-
- int _X_m_C_l_i_p_b_o_a_r_d_I_n_q_u_i_r_e_F_o_r_m_a_t (ddddiiiissssppppllllaaaayyyy,,,, wwwwiiiinnnnddddoooowwww,,,, iiiinnnnddddeeeexxxx,,,, ffffoooorrrrmmmmaaaatttt____nnnnaaaammmmeeee____bbbbuuuuffff,,,,
- bbbbuuuuffffffffeeeerrrr____lllleeeennnn,,,, ccccooooppppiiiieeeedddd____lllleeeennnn)
- _D_i_s_p_l_a_y **** ddddiiiissssppppllllaaaayyyy;
- _W_i_n_d_o_w wwwwiiiinnnnddddoooowwww;
- _i_n_t iiiinnnnddddeeeexxxx;
- _X_t_P_o_i_n_t_e_r ffffoooorrrrmmmmaaaatttt____nnnnaaaammmmeeee____bbbbuuuuffff;
- _u_n_s_i_g_n_e_d _l_o_n_gbbbbuuuuffffffffeeeerrrr____lllleeeennnn;
- _u_n_s_i_g_n_e_d _l_o_n_g**** ccccooooppppiiiieeeedddd____lllleeeennnn;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _X_m_C_l_i_p_b_o_a_r_d_I_n_q_u_i_r_e_F_o_r_m_a_t returns a specified format name for
- the data item in the clipboard. If the name must be
- truncated, the function returns a warning status.
-
- ddddiiiissssppppllllaaaayyyy
- Specifies a pointer to the _D_i_s_p_l_a_y structure that was
- returned in a previous call to _X_O_p_e_n_D_i_s_p_l_a_y or
- _X_t_D_i_s_p_l_a_y.
-
- wwwwiiiinnnnddddoooowwww
- Specifies a widget's window ID that relates the
- application window to the clipboard. The widget's
- window ID can be obtained by using _X_t_W_i_n_d_o_w. The same
- application instance should pass the same window ID to
- each of the clipboard functions that it calls.
-
- iiiinnnnddddeeeexxxx
- Specifies which of the ordered format names to obtain.
- If this index is greater than the number of formats for
- the data item, this function returns a zero in the
- ccccooooppppiiiieeeedddd____lllleeeennnn argument.
-
- ffffoooorrrrmmmmaaaatttt____nnnnaaaammmmeeee____bbbbuuuuffff
- Specifies the buffer that receives the format name.
-
- bbbbuuuuffffffffeeeerrrr____lllleeeennnn
- Specifies the number of bytes in the format name
- buffer.
-
- ccccooooppppiiiieeeedddd____lllleeeennnn
- Specifies the number of bytes in the string copied to
- the buffer. If this argument equals zero, there is no
- nnnntttthhhh format for the data item.
-
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeeFFFFoooorrrrmmmmaaaatttt((((3333XXXXUUUU))))NNNNIIIIXXXX SSSSyyyysssstttteeeemmmmXXXXVVVVmmmmCCCClllliiiippppbbbbooooaaaarrrrddddIIIInnnnqqqquuuuiiiirrrreeeeFFFFoooorrrrmmmmaaaatttt((((3333XXXX))))
-
-
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _C_l_i_p_b_o_a_r_d_S_u_c_c_e_s_s
- The function is successful.
-
- _C_l_i_p_b_o_a_r_d_L_o_c_k_e_d
- The function failed because the clipboard was locked by
- another application. The application can continue to
- call the function again with the same parameters until
- the lock goes away. This gives the application the
- opportunity to ask if the user wants to keep trying or
- to give up on the operation.
-
- _C_l_i_p_b_o_a_r_d_T_r_u_n_c_a_t_e
- The data returned is truncated because the user did not
- provide a buffer large enough to hold the data.
-
- _C_l_i_p_b_o_a_r_d_N_o_D_a_t_a
- The function could not find data on the clipboard
- corresponding to the format requested. This could
- occur because the clipboard is empty; there is data on
- the clipboard but not in the requested format; or the
- data in the requested format was passed by name and is
- no longer available.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _X_m_C_l_i_p_b_o_a_r_d_S_t_a_r_t_C_o_p_y(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-